package com.xy.datastruc.graph;

public class LinkgraphTest {

    public static void main(String[] args) {

        LinkGraph linkGraph = new LinkGraph();

        linkGraph.addVertex(new Vertex("A"));
        linkGraph.addVertex(new Vertex("B"));
        linkGraph.addVertex(new Vertex("C"));
        linkGraph.addVertex(new Vertex("D"));
        linkGraph.addVertex(new Vertex("E"));

        linkGraph.addAdge("A","B");
        linkGraph.addAdge("B","C");
        linkGraph.addAdge("B","E");
        linkGraph.addAdge("C","D");

        linkGraph.printGraph();



    }
}
